const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: './',
  outputDir: 'dist',
  devServer: {
    historyApiFallback: true,
    open: false,
    host: "192.168.10.95",
    port: 8080,
    hot: true,
    https: false,
    proxy: {
      "/api": {
        target: "xxx", // 后端服务域名
        secure: false, // 是否支持 https，默认 false
        ws: true, // 是否支持 websocket
        changeOrigin: true, // 是否支持跨域
        pathRewrite: {
          "^/": "/", // 路径片段重写
        },
      }
    },
    client: {
      overlay: false
    }
  },
});
